// FIXME hack teamix-ui 1.3.7 版本 Message 组件无title的时候右边叉子点不了了的bug
.#{$teamix-prefix}message-content {
  transform: none;
}

// FIXME 作为 section divider参数写入布局组件
.base-setting-main,
.services-content {
  .teamix-layout-section:not(:last-child) {
    margin-bottom: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-line1-1, #eee);
  }
  .teamix-layout-section:not(:first-child) {
    margin-top: 24px;
  }
}
.services-content {
  max-width: 1000px;
  .setting-card-item:not(:last-child) {
    margin-bottom: var(--form-item-m-margin-b, 16px);
  }
}

// hack modal 内侧导滚动条贴边
// .teamix-layout-layout.no-padding {
//   .teamix-layout-side-bar:not(.no-padding) {
//     padding: 0;
//     padding-bottom: 24px;
//     .teamix-layout-side-bar-content {
//       padding: 24px;
//       overflow-y: overlay;
//     }
//   }
// }
// hack 页面级侧导滚动条贴边
// .teamix-layout-layout:not(.no-padding) {
//   .teamix-layout-side-bar:not(.no-padding) {
//     padding-right: 0;
//     .teamix-layout-side-bar-content {
//       padding-right: 40px;
//       overflow-y: overlay;
//     }
//   }
// }

// 侧导中的左右结构
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
  &-badge {
    color: var(--color-fill1-6, #8b8b8b);
    font-weight: normal;
    font-family: initial;
  }
}
.#{$teamix-prefix}menu {
  .nav-item {
    padding-right: 0;
  }
  .#{$teamix-prefix}tag {
    margin: 0;
    font-weight: initial;
  }
}

.enterprise-setting__main__sidebar > .at-nav {
  background: /* Shadow covers */ linear-gradient(#f7f7f7 100%, rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), #f7f7f7 70%) 0 100%,
    /* Shadows */ radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
    radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
  background: /* Shadow covers */ linear-gradient(#f7f7f7 100%, rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), #f7f7f7 100%) 0 100%,
    /* Shadows */ radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  /* Opera doesn't support this in the shorthand */
  background-attachment: local, local, scroll, scroll;
}

.codeUp-guide {
  z-index: 1003 !important;
}

.yunxiao-star {
  position: relative;
  top: -2px;
}

div.yx-tag {
  margin: 4px;
  margin-left: 8px;
}

.hideScroll::-webkit-scrollbar {
  display: none;
}

.uiless-member-mini-content .uiless-member-mini-search.yx-input.yx-medium {
  width: unset !important;
  padding: 0;
}

.uiless-yunxiao-member-panel-dialog {
  // left: calc(50% - 220px) !important;
  top: calc(50% - 250px) !important;
  .yx-dialog-body {
    max-height: 500px !important;
    padding: 0;
  }
}

.yx-table-body {
  max-height: unset !important;
}

// 整页缺省距上距离，先不居中
.code-error-page {
  margin-top: 80px;
}
// 区块缺省距上距离，先不居中
.code-empty {
  margin-top: 40px;
}

// 表格中的缺省组件
.table-result {
  padding-bottom: 20px;
  cursor: initial;
}

// FIXME at有这个样式，考虑加到devops-ui
.#{$teamix-prefix}form-item + .#{$teamix-prefix}form-item:last-child,
.#{$teamix-prefix}form-item.has-error,
.#{$teamix-prefix}form-item.has-help {
  margin-bottom: 0;
}

// hack 不然新建MR加人不居中
.teamix-avatar-cluster-add {
  height: inherit;
}

.teamix-result {
  .extra {
    & > *:not(:first-child) {
      margin-left: 8px;
    }
  }
}

// 用于给按钮之间的间距 8px
.cell:not(:last-child) {
  margin-right: 8px;
}

// hack 面包屑分隔符字号
.code-breadcrumb {
  .#{$teamix-prefix}breadcrumb-separator {
    font-size: var(--breadcrumb-size-m-font-size, 14px);
  }
}

// tooltip的word-break
.#{$teamix-prefix}balloon-content {
  word-break: break-all !important;
}

.#{$teamix-prefix}dialog-quick {
  .#{$teamix-prefix}dialog-body {
    max-height: unset !important;
  }
}

// 流水线给id=container元素添加背景色
#container.empty-flow-bg {
  background-image: linear-gradient(180deg, #ebfaff 0%, #fff 100%) !important;
}

.teamix-layout-footer-right {
  position: relative;
  z-index: 0;
}

.#{$teamix-prefix}balloon-tooltip {
  .#{$teamix-prefix}balloon-content {
    max-height: 300px;
    overflow-y: auto;
  }
}

// 移除body min-width的class
.no-min-width {
  min-width: unset !important;
}

div#driver-highlighted-element-stage {
  opacity: 0 !important;
  background: transparent !important;
  z-index: 100006 !important;
}

.search-bar-mask {
  max-width: 100% !important;
}
